package com.ruoyi.carShopService.service.Impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.carShopService.mapper.CarUserBookingMapper;
import com.ruoyi.carShopService.domain.CarUserBooking;
import com.ruoyi.carShopService.service.ICarUserBookingService;

import javax.annotation.Resource;

/**
 * 维修预约Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-12
 */
@Service
public class CarUserBookingServiceImpl implements ICarUserBookingService 
{
    @Resource
    @Autowired
    private CarUserBookingMapper carUserBookingMapper;

    /**
     * 查询维修预约
     * 
     * @param bookingId 维修预约主键
     * @return 维修预约
     */
    @Override
    public CarUserBooking selectCarUserBookingByBookingId(Long bookingId)
    {
        return carUserBookingMapper.selectCarUserBookingByBookingId(bookingId);
    }

    /**
     * 查询维修预约列表
     * 
     * @param carUserBooking 维修预约
     * @return 维修预约
     */
    @Override
    public List<CarUserBooking> selectCarUserBookingList(CarUserBooking carUserBooking)
    {
        return carUserBookingMapper.selectCarUserBookingList(carUserBooking);
    }

    @Override
    public List<CarUserBooking> selectCarUserBookingList2(CarUserBooking carUserBooking) {
        return carUserBookingMapper.selectCarUserBookingList2(carUserBooking);
    }

    @Override
    public int updateRepairStatus(CarUserBooking carUserBooking) {
        return carUserBookingMapper.updateRepairStatus(carUserBooking);
    }

    /**
     * 新增维修预约
     * 
     * @param carUserBooking 维修预约
     * @return 结果
     */
    @Override
    public int insertCarUserBooking(CarUserBooking carUserBooking)
    {
        return carUserBookingMapper.insertCarUserBooking(carUserBooking);
    }

    /**
     * 修改维修预约
     * 
     * @param carUserBooking 维修预约
     * @return 结果
     */
    @Override
    public int updateCarUserBooking(CarUserBooking carUserBooking)
    {
        return carUserBookingMapper.updateCarUserBooking(carUserBooking);
    }

    @Override
    public int deleteCarUserBookingByBookingIds(Long[] bookingIds) {
        return 0;
    }

    @Override
    public int deleteCarUserBookingByBookingId(Long bookingId) {
        return 0;
    }



}
